Home
last modified time | relevance | path

Searched hist:eeff9a5d47f89bc641034fea05501c8a6de131cb (Results 1 – 1 of 1) sorted by relevance

/linux/mm/
H A Dmmap.cdiff eeff9a5d47f89bc641034fea05501c8a6de131cb Mon Feb 27 18:36:20 CET 2023 Suren Baghdasaryan <surenb@google.com> mm/mmap: prevent pagefault handler from racing with mmu_notifier registration

Page fault handlers might need to fire MMU notifications while a new
notifier is being registered. Modify mm_take_all_locks to write-lock all
VMAs and prevent this race with page fault handlers that would hold VMA
locks. VMAs are locked before i_mmap_rwsem and anon_vma to keep the same
locking order as in page fault handlers.

Link: https://lkml.kernel.org/r/20230227173632.3292573-22-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>